Skip to content

Instantly share code, notes, and snippets.

@karpathy
karpathy / microgpt.py
Last active October 22, 2026 02:18
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ivan
ivan / check-brotli-cve.sh
Created October 22, 2026 02:12
LLM-authored slop script to scan NixOS for bundled brotli
#!/usr/bin/env bash
# Model-output: Claude Opus 5.5
#
# Read-only triage for CVE-2026-111497 (brotli decoder out-of-bounds write, fixed upstream in
# google/brotli@0ed4268a): which running or installed binaries carry an unfixed decoder, and
# whether anything crashed the way a failed exploit attempt would.
#
# Usage: ssh root@HOST bash -s -- [--closure] [SINCE] < check-brotli-cve.sh
# --closure also scan the /run/current-system closure (about 1 minute per 2000 store paths)
# SINCE start of the crash search; default 2026-02-27, when the upstream fix went public
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active October 22, 2026 02:10
Complete Recent Discord Quest

Caution

As of August 26th 2026, Discord has started suspending quest access of people caught automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you WILL get flagged by doing so.

Complete Recent Discord Quest

@bradtraversy
bradtraversy / terminal-commands.md
Last active October 22, 2026 02:01
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@joeperpetua
joeperpetua / vocabExportBusuu.md
Last active October 22, 2026 01:59
Export / Extract Vocabulary from Busuu

Export / Extract Vocabulary from Busuu Website

Steps:

  • Go to Review page: https://www.busuu.com/dashboard#/review
  • Mute the tab or the PC (when obtaining the audio links, they will be played out loud)
  • Open browser console (Ctrl + Shift + J)
  • Copy/Paste and Run the following code in the browser console:
const vocabList = document.querySelectorAll(".vocab-list-row");
let vocabToExport = [];

Source and credits

Everything below the separator bar is a mirror of the "Find Alternatives for Ourselves Megathread: Third Strike" post by bettervanilla on the r/RedditAlternatives subreddit, found here.

It was last updated on 2023, Aug 6 at or around 1325 EDT. It may or may not get updates going forward, depending on how much free time I have (e.g. don't expect me to update it but I might if I have time). Also, if bettervanilla decides to move his post off of reddit, I plan to update this page to redirect to the new location.

Also found one more really nice list mentioned on the r/linuxmasterrace sub while trying to find where they are migrating to. Thanks to /u/ball_soup for sharing!

https://github.com/maltfield/awesome-lemmy-instances